import request from '@/sheep/request';

export default {
  // 查询联系人关系列表
  queryContactRelations(data) {
    return request({
      url: '/relation/contact/queryContactRelations',
      method: 'POST',
      data
    });
  },

  // 批量修改联系人关系
  batchUpdateContactRelation(data) {
    return request({
      url: '/relation/contact/batchUpdateContactRelation',
      method: 'POST',
      data
    });
  },

  // 删除联系人关系
  deleteContactRelation(data) {
    return request({
      url: '/relation/contact/deleteContactRelation',
      method: 'POST',
      data
    });
  },

  //查询关系图
  queryRelationGraph() {
    return request({
      url: '/relation/contact/queryRelationGraph',
      method: 'POST'
    });
  },
};